﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.ImportPszxToCurrentStudy.CUiConfirmCopyDlg
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using System;
using System.ComponentModel;
using System.Windows.Forms;
using Tecnomatix.Engineering.Ui;


namespace DnProcessSimulateCommands.ImportPszxToCurrentStudy;

public class CUiConfirmCopyDlg : TxForm
{
  private bool m_userSelection;
  private bool m_dontShowMessageAgain;
  private IContainer components;
  private Button m_YesButton;
  private Button m_NoButton;
  private CheckBox m_DoNotShowMessageAgainCheckBox;
  private Label m_OverwriteMessageLabel;
  private Label label1;

  public CUiConfirmCopyDlg()
  {
    this.InitializeComponent();
    this.m_dontShowMessageAgain = false;
  }

  public bool GetUserSelection(string fileName)
  {
    if (!this.m_dontShowMessageAgain)
    {
      this.m_OverwriteMessageLabel.Text = fileName;
      int num = (int) ((Form) this).ShowDialog();
    }
    return this.m_userSelection;
  }

  private void m_YesButton_Click(object sender, EventArgs e)
  {
    this.m_userSelection = true;
    ((Form) this).Close();
  }

  private void m_NoButton_Click(object sender, EventArgs e)
  {
    this.m_userSelection = false;
    ((Form) this).Close();
  }

  private void m_DoNotShowMessageAgainCheckBox_CheckedChanged(object sender, EventArgs e)
  {
    this.m_dontShowMessageAgain = true;
  }

  protected virtual void Dispose(bool disposing)
  {
    if (disposing && this.components != null)
      this.components.Dispose();
    base.Dispose(disposing);
  }

  private void InitializeComponent()
  {
    ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (CUiConfirmCopyDlg));
    this.m_YesButton = new Button();
    this.m_NoButton = new Button();
    this.m_DoNotShowMessageAgainCheckBox = new CheckBox();
    this.m_OverwriteMessageLabel = new Label();
    this.label1 = new Label();
    ((Control) this).SuspendLayout();
    componentResourceManager.ApplyResources((object) this.m_YesButton, "m_YesButton");
    this.m_YesButton.Name = "m_YesButton";
    this.m_YesButton.UseVisualStyleBackColor = true;
    this.m_YesButton.Click += new EventHandler(this.m_YesButton_Click);
    componentResourceManager.ApplyResources((object) this.m_NoButton, "m_NoButton");
    this.m_NoButton.Name = "m_NoButton";
    this.m_NoButton.UseVisualStyleBackColor = true;
    this.m_NoButton.Click += new EventHandler(this.m_NoButton_Click);
    componentResourceManager.ApplyResources((object) this.m_DoNotShowMessageAgainCheckBox, "m_DoNotShowMessageAgainCheckBox");
    this.m_DoNotShowMessageAgainCheckBox.Name = "m_DoNotShowMessageAgainCheckBox";
    this.m_DoNotShowMessageAgainCheckBox.UseVisualStyleBackColor = true;
    this.m_DoNotShowMessageAgainCheckBox.CheckedChanged += new EventHandler(this.m_DoNotShowMessageAgainCheckBox_CheckedChanged);
    componentResourceManager.ApplyResources((object) this.m_OverwriteMessageLabel, "m_OverwriteMessageLabel");
    this.m_OverwriteMessageLabel.Name = "m_OverwriteMessageLabel";
    componentResourceManager.ApplyResources((object) this.label1, "label1");
    this.label1.Name = "label1";
    componentResourceManager.ApplyResources((object) this, "$this");
    ((ContainerControl) this).AutoScaleMode = AutoScaleMode.Font;
    ((Control) this).Controls.Add((Control) this.label1);
    ((Control) this).Controls.Add((Control) this.m_OverwriteMessageLabel);
    ((Control) this).Controls.Add((Control) this.m_DoNotShowMessageAgainCheckBox);
    ((Control) this).Controls.Add((Control) this.m_NoButton);
    ((Control) this).Controls.Add((Control) this.m_YesButton);
    ((Form) this).MaximizeBox = false;
    ((Form) this).MinimizeBox = false;
    ((Control) this).Name = nameof (CUiConfirmCopyDlg);
    ((Form) this).SizeGripStyle = SizeGripStyle.Hide;
    ((Control) this).ResumeLayout(false);
    ((Control) this).PerformLayout();
  }
}
